package generator;


public class GeneratorFaktStarter {
	
	
	/**
	
	// FOOOSH Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "fooosh";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/
	
	/**
	// CIT Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/persistence/src/";
	private static String PACKAGE = "database/object/";
	private static String DRIVER_CLASS = "oracle.jdbc.driver.OracleDriver";
	private static String CONNECTION_STRING = "jdbc:oracle:thin:@q4de3qsy266.t2.sl-si.com:1522:cite01";
	private static String SCHEMA = "cit";
	private static String USER = "cit";
	private static String PASSWORD = "cat";
	**/
	
	/**
	// AnalyseDB Properties
	private static String SOURCE_FOLDER = "C:/_data/workspaces/cit_search/generator/src/";
	private static String PACKAGE = "analyse.database.object";
	private static String PACKAGE_FOLDER = PACKAGE.replace(".", "/") + "/";
	private static String DRIVER_CLASS = "com.mysql.jdbc.Driver";
	private static String CONNECTION_STRING = "jdbc:mysql://localhost/";
	private static String SCHEMA = "db_analyse";
	private static String USER = "root";
	private static String PASSWORD = null;
	**/

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		PersistenceContext context = new PersistenceContext();
		//context.setSourceFolder("C:/_data/workspaces/cit_search/CIT_SEARCH_AUTHENTICATOR/src/");
		context.setSourceFolder("C:/_data/workspace_faktura/FAKT_MAIN/src/");
		context.setPackageName("com.tsi.fulfillment.faktura.persistence");
		context.setDriverClass("com.mysql.jdbc.Driver");
		context.setConnectionUrl("jdbc:mysql://localhost/");
		context.setSchema("fakt");
		context.setUser("root");
		context.setPassword("");
		context.setDbAlias("fakt");
		context.addTableToWhitelist("crmt_anreicherung");
		context.addTableToWhitelist("gemse_exception");
		context.addTableToWhitelist("mccr_anreicherung_auftrag");
		context.addTableToWhitelist("mccr_anreicherung_auftrag_position");
		context.addTableToWhitelist("mccr_anreicherung_vertrag");
		context.addTableToWhitelist("mccr_anreicherungsanfrage");
		context.addTableToWhitelist("redi_anreicherung");
		context.addTableToWhitelist("sys_geloest");
		context.addTableToWhitelist("sys_loesung");
		
		
		Persistence generator = new Persistence(context);
		generator.start();

	}

}
